import request from '@/utils/request'

// 查询大学的学科类别列表
export function listDiscipline(query) {
  return request({
    url: '/system/discipline/list',
    method: 'get',
    params: query
  })
}

// 查询大学的学科类别详细
export function getDiscipline(disciplineId) {
  return request({
    url: '/system/discipline/' + disciplineId,
    method: 'get'
  })
}

// 新增大学的学科类别
export function addDiscipline(data) {
  return request({
    url: '/system/discipline',
    method: 'post',
    data: data
  })
}

// 修改大学的学科类别
export function updateDiscipline(data) {
  return request({
    url: '/system/discipline',
    method: 'put',
    data: data
  })
}

// 删除大学的学科类别
export function delDiscipline(disciplineId) {
  return request({
    url: '/system/discipline/' + disciplineId,
    method: 'delete'
  })
}
